package com.test.service.impl;

import com.test.pojo.TbAddress;
import com.test.mapper.TbAddressMapper;
import com.test.pojo.TbOrderItem;
import com.test.service.TbAddressService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.test.vo.AddressVO;
import com.test.vo.ToOrderItemVO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yanglijun
 * @since 2020-12-12
 */
@Service
public class TbAddressServiceImpl extends ServiceImpl<TbAddressMapper, TbAddress> implements TbAddressService {
   @Resource
    TbAddressMapper addressMapper;
    @Override
    public List<AddressVO> getAddressList(String userName) {
        return addressMapper.getAddressList(userName);
    }

    @Override
    public List<ToOrderItemVO> getToOrderItem() {
        return addressMapper.getToOrderItem();
    }
}
